<div class="page-bar">
    {foreach $pobj['link'] $k $v}
        {if intval($v) > 0}
        <a href="{url:($pobj['url'] . '-' . $pobj['var'] . '-%d' , $v)}" class="page-bar-a {$v == $pobj['pn'] ? 'active' : ''}">{$v}</a>
        {else}
        <a href="javascript:void(0);" class="page-bar-a">{$v}</a>
        {/if}
    {/foreach}
</div>